#include "qlinearfloatconfigdialog.h"
#include "ui_qlinearfloatconfigdialog.h"

QLinearFloatConfigDialog::QLinearFloatConfigDialog(QWidget *parent) :
    QBaseDialog(parent),
    ui(new Ui::QLinearFloatConfigDialog)
{
    ui->setupUi(this);
    setProperty("no-ManhattanStyle",true);
}

QLinearFloatConfigDialog::~QLinearFloatConfigDialog()
{
    delete ui;
}

void QLinearFloatConfigDialog::on_okBtn_clicked()
{
    m_period=ui->spinBox->value();
    m_step=ui->doubleSpinBox->value();
    close();
}

void QLinearFloatConfigDialog::on_cancelBtn_clicked()
{
    close();
}

int QLinearFloatConfigDialog::get_period()
{
    return m_period;
}

float QLinearFloatConfigDialog::get_step()
{
    return m_step;
}
